package com.android.picotts.ui.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;

public class SelectLinelayout extends LinearLayout {

    public SelectLinelayout(Context context) {
        super(context);
    }
    
    public SelectLinelayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
    
    public void update(long sid) {
        int size = getChildCount();
        View child = null;
        for(int i = 0; i < size; i++) {
            child = getChildAt(i);
            if(sid != child.getId()) {
                child.setSelected(false);
            }
        }
    }
}